﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimCMS.Model;
using SimCMS.Repository;

namespace SimCMS.Manager
{
   public  class SimadminmenuManager : ISimadminmenuManager
    {
       public IRepository<Simadminmenu> SimadminmenuRepository { get; set; }

       public object Save(Simadminmenu entity)
        {
            return this.SimadminmenuRepository.Save(entity);
        }

        public void Delete(object id)
        {
            this.SimadminmenuRepository.Delete(this.Get(id));
        }

        public Simadminmenu Get(object id)
        {
            return this.SimadminmenuRepository.Get(id);
        }

        public IList<Simadminmenu> LoadAll()
        {
            return this.SimadminmenuRepository.LoadAll();
        }

        public void Update(Simadminmenu entity)
        {
            this.SimadminmenuRepository.Update(entity);
        }
    }
}
